home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-08-12 | 1.3 KB | 37 lines | [TEXT/CCL2] |
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; load-btree.lisp
- ;;
- ;; Copyright © 1992 University of Toronto, Department of Computer Science
- ;; All Rights Reserved
- ;;
- ;; author: Mark A. Tapia markt@dgp.toronto.edu or markt@dgp.utoronto.ca
- ;;
- ;; loads the btree package
- (defpackage btree
- (:use "COMMON-LISP" "CCL"))
-
- (defmacro logical-to-name (logical-name &optional rest)
- "Allow the expansion of logical pathnames"
- `(if ,rest
- (format nil "~a~a" (mac-directory-namestring
- (truename ,logical-name))
- ,rest)
- (mac-directory-namestring (truename ,logical-name))))
-
- (defun translate-name (top-dir &optional sub-dirs file)
- (let (main-dir)
- (if file
- (setq main-dir (logical-to-name top-dir sub-dirs))
- (setq main-dir (logical-to-name top-dir)
- file sub-dirs))
- (format nil "~a~a" main-dir file)))
-
- (setf (logical-pathname-translations "btree")
- (list (list "btree:**;*.*"
- (full-pathname
- (concatenate 'string
- (directory-namestring *loading-file-source-file*)
- "**:*.*")))))
-
- (load (translate-name "btree:" "btree-dcl") :verbose t)
- (load (translate-name "btree:" "btree") :verbose t)